#include "UFace.h"

TTriangle::TTriangle(){
	TVector vec;
	v1 = vec;
	n1 = vec;
	v2 = vec;
	n2 = vec;
	v3 = vec;
	n3 = vec;
	uv1 = vec;
	uv2 = vec;
	uv3 = vec;
}

TFace::TFace()
{
	hasNormals = false;
	hasTVecs = false;
}

void TFace::AddGVector(int NewVector)
{
    GVertex.push_back(NewVector);
}

int TFace::VectorLength()
{
		return GVertex.size();
}

int TFace::GetGVector(int Index) const
{
    return GVertex[Index];
}
void TFace::AddNVector(int NewVector)
{
    NVertex.push_back(NewVector);
}

void TFace::AddTVector(int NewVector)
{
    TVertex.push_back(NewVector);
}

int TFace::GetNVector(int Index) const
{
    return NVertex[Index];
}

int TFace::GetTVector(int Index) const
{
    return TVertex[Index];
}

void TFace::SetNormal(TVector NewNormal)
{
    NormalVector = NewNormal;
}

TVector TFace::GetNormal() const
{
    return NormalVector;
}

